package com.jk.dmconsumer.service;

import com.jk.dmcommon.entity.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @描述
 * @参数 $
 * @返回值 $
 * @创建人 lgf
 * @创建时间 $
 * @修改人和其它信息
 */
@Component
@FeignClient("dmuserprovider")
public interface PhoneService {

    @RequestMapping("phone/findPhone")
    UserEntity findPhone(@RequestParam Integer userId);
    @PostMapping("phone/update")
    void update(@RequestBody UserEntity user);

    @PostMapping("phone/updatePhone")
    void updatePhone(@RequestBody UserEntity user);

    @PostMapping("phone/addyou")
    void addyou(@RequestBody UserEntity user);

    @PostMapping("phone/adddcard")
    Map adddcard(@RequestBody UserEntity user);
}
